<template>
  <div>
    <h2>TsUser</h2>
    {{ count }} <button @click="count++">+</button>

    <hr>

    {{ add(100) }}
  </div>
</template>
<script>
export default {
  data() {
    return {
      count: 10
    };
  },
  created() {
    console.log('TsUser created');
  },
  methods: {
    add(x) {
      return x * this.count;
    }
  }
};
</script>